import type { HomeworkItem, HomeworkParams } from '@/types/homework'
import type { PageResult } from '@/types/global'
import { http } from '@/utils/http'

/**
 * 提交作业
 * @param params
 * @returns
 */
export const submitHomeworkAPI = (params: HomeworkItem) => {
  return http({
    method: 'POST',
    url: '/wechat/homework/save',
    data: params,
  })
}
